package org.webscale.amazinggwt.client.util;

import java.util.HashMap;

public class AppEventPayload<X> extends HashMap<String, X> {

	
	public static AppEventPayload<String> createString(String str){
		AppEventPayload<String> eve = new AppEventPayload<String>();
		eve.putData("str", str);
		return eve;
	}
	
	public X getData(String id){
		return get(id); 
	}
	
	public void putData(String id , X data){
		put(id, data);
	}
	
}
